package com.ship.common.core.mapping;

import java.lang.annotation.*;

import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * @author 31463
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(value={ElementType.FIELD})
@Repeatable(SearchItem.List.class)
public @interface SearchItem {
	
	String group() default "";
	
	int priority() default 0;
	
	int width() default 0;

	@Target({ ElementType.FIELD })
	@Retention(RUNTIME)
	@Documented
	public @interface List{
		SearchItem[] value();
	}
}
